import { Module, forwardRef } from '@nestjs/common';
import { ConfigurationService } from './configuration.service';
import { ConfigurationController } from './configuration.controller';
import { TypegooseModule } from 'nest-typegoose';
import { SiteInfo } from '@libs/db/models/site-info.model';
import { CompanyInfo } from '@libs/db/models/company-info.model';
import { Swiper } from '@libs/db/models/swiper.model';
import { EmailConfig } from '@libs/db/models/email-config.model';
import { EmailModule } from '../email/email.module';

@Module({
  imports: [
    TypegooseModule.forFeature([SiteInfo, CompanyInfo, Swiper, EmailConfig]),
    forwardRef(() => EmailModule)
  ],
  controllers: [ConfigurationController],
  providers: [ConfigurationService],
  exports: [ConfigurationService]
})
export class ConfigurationModule {}
